// Step 7 (Final): Change the app's theme

import 'package:flutter/material.dart';
import 'package:english_words/english_words.dart';

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: '贝店',
      color: Colors.red,
      theme: new ThemeData(
        primaryColor: Colors.white,
      ),
      home: new RandomWords(),
    );
  }
}

class RandomWords extends StatefulWidget {
  @override
  createState() => new RandomWordsState();
}

class RandomWordsState extends State<RandomWords> {
  final _suggestions = <WordPair>[];

  final _saved = new Set<WordPair>();

  final _biggerFont = const TextStyle(fontSize: 18.0);

  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Image.asset(
          'images/img_shop_logo.png',
          width: 43.0,
          height: 26.0,
          fit: BoxFit.fitWidth,
        ),
        leading: new Container(
          width: 34,
          height: 20,
          padding: EdgeInsets.only(left: 12,top: 15,bottom: 15),
          child: new Image.asset(
          'images/img_shop_information.png',
          width: 22.0,
          height: 22.0,
          fit: BoxFit.fitHeight,
        ),
        ),
        actions: <Widget>[
          new Container(
            width: 34,
            height: 30,
            padding: EdgeInsets.only(right: 12),
            child:  new Image.asset(
            'images/ic_shop_seek.png',
            width: 22.0,
            height: 22.0,
            fit: BoxFit.contain,
          ),
          )
        ],
      ),
     
    );
  }
}
